package com.liushi.util;


import java.util.Arrays;
import java.util.LinkedList;
import java.util.Queue;

/**
 * @author: hliushi
 * @date: 2022/3/23 18:51
 **/
public class TreeTest {

    public static void main(String[] args) {
        String[] arr = {"1", "2", "3", null, "5", "6", null, null, null, null, null};
        Queue<String> queue = new LinkedList<>(Arrays.asList(arr));

        TreeNode treeNode = new TreeNode();
        treeNode = treeNode.buildByLevelQueue(queue);

        TreeOperation.show(treeNode);
    }
}
